package com.example.aoplog.service.impl;

import com.example.aoplog.annotation.LogAnnotation;
import com.example.aoplog.mapper.LogMapper;
import com.example.aoplog.pojo.Log;
import com.example.aoplog.service.LogService;
import com.example.aoplog.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author achen
 * @create 2021-10-26 16:44
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Override
    @LogAnnotation(content = "查询所有用户",type = "select")
    public String selectAll() {
        return "查询成功";
    }

    @Override
    @LogAnnotation(content = "添加用户",type = "add")
    public String addUser() {
        log.info("添加用户成功");
        return "添加用户成功";
    }
}
